#pragma once
#include <string>

#ifndef _Person_H
#define _Person_H

#include "Resource.h"
#include <memory>

using namespace std;
class Person
{
private:
	string firstName;
	string lastName;
	int arbitraryNumber;
	shared_ptr<Resource> pResource;
public:
	Person(string fname,string lname,int anumber);
	//Person(const Person& p); //we dont need cus we used shared_ptr
	~Person(void);
	string GetName() const;
	int GetNumber() const{return arbitraryNumber;};
	void SetNumber(int anumber){arbitraryNumber=anumber;};
	void SetFirstName(string fname) {firstName=fname;};
	bool operator<(Person& p);
	bool operator<(int i);
	friend bool operator<(int i,Person& p);
	//Person& operator=(const Person& p); //we dont need cus we used shared_ptr
	void AddResource();
	string GetResourceName() const{return pResource->GetName();}
};
bool operator<(int i,Person& p);
#endif

